@extends('back.index')
@section('title','课程管理')

@section('style')
    <style>
        img{width:300px;height:100px;}
        th{text-align:center;}
        td{border-right:1px solid #ccc;height:80px;}
    </style>
@endsection

@section('mian')
    <div style="font-size:14px;padding:20px;" class="modal-content">
        <div class="my-order-wrap">
            <table class="table table-hover my-order-list" data-token="b85c364572f96a34c7a2e04eeee935e4">
                <thead>
                <tr class="info" style="text-align:center;">
                    <th>ID</th>
                    <th class="order-shoop-h">添加时间</th>
                    <th class="order-img-h" style="width:320px;">轮播图片</th>
                    <th class="order-name-h">图片名</th>
                    <th class="" style="width:300px;">操作</th>
                </tr>
                </thead>
                <tbody>
                @foreach($readuserbox as $k)
                    <tr>
                        <td class="order-time-b">
                            <div class="ie8-td-fixed">
                                <div style="height:100px;">
                                    {{$k->id}}
                                </div>
                            </div>
                        </td>
                        <td class="order-time-b">
                            <div class="ie8-td-fixed">
                                <div style="height:100px;">
                                    {{date('Y-m-d',$k->uptime)}}
                                </div>
                            </div>
                        </td>
                        <td class="order-time-b">
                            <div class="ie8-td-fixed">
                                <div style="height:100px;">
                                    <img src="{{asset("home/figure/image/".$k->id.'.jpg')}}">
                                </div>
                            </div>
                        </td>
                        <td class="order-time-b">
                            <div class="ie8-td-fixed">
                                <div style="height:100px;">
                                    {{$k->iconname}}
                                </div>
                            </div>
                        </td>
                        <form action="{{url('back/center/update_figure')}}" method="post" enctype="multipart/form-data">
                            {{csrf_field()}}
                        <td class="order-time-b">
                            <div class="ie8-td-fixed">
                                <div style="height:50px;text-align:center;">
                                    <input type="hidden" name="id" value="{{$k->id}}">
                                    <input type="file" name="image">
                                    <input style="width:100px;" type="submit" class="btn btn-success" value="更新">
                                </div>
                            </div>
                        </td>
                        </form>
                    </tr>
                @endforeach

                </tbody>
            </table>
            {{$readuserbox->links()}}
        </div>
    </div>
@endsection